<?php Asset::container('front')->add('front_css', 'css/front/index.css');?>
<?php $collections = Collection::all();?>
<?php
$cname = Config::get('option.site.cname');
$description = Config::get('option.site.description');
$title = "搜索:{$keyword}|{$cname}-{$description}";
$meta = array();
$meta['keywords'] = Config::get('option.site.keywords', '');
$meta['description'] = $description;
?>
<?php echo View::make('share.front_header')->with('css', array('front'))->with('title', $title)->with('meta', $meta);?>
<?php echo View::make('share.front_nav')->with('collections', $collections)->with('cid', 0)?>
<div id="wrap" class='container' style='margin-top:10px;'>

<div class="container">
    <div style='width:100%;height:100%'>
    <?php if ($keyword):?>
    <span class='label label-info'><?php echo $keyword;?></span>
    <?php endif;?>
    <ul style='margin:0px;margin-top:20px;width:100%;float:left;'>
    <?php foreach ($products->taobaoke_item as $p):?>
      <li style='float:left;list-style:none;margin:5px;padding:5px;' class='unselected'>
        <img alt='<?php echo strip_tags($p->title);?>' title='<?php echo strip_tags($p->title);?>' class='product' src='<?php echo $p->pic_url . '_310x310.jpg';?>' style='width:215px;height:215px;'/>
        <div style='margin:10px auto;width:70%;height:30px;'>
          <span class='label'>￥<?php echo $p->price;?></span>
          <a href='<?php echo $p->click_url;?>' target='_blank' style='margin-left:3px;' class='btn btn-mini btn-success pull-right'>去看看</a>
        </div>
      </li>
    <?php endforeach;?>
    </ul>





    <div style='height:10px;clear:both;'></div>
    <div class="pagination pull-right">
      <ul><?php echo $page;?></ul>
    </div>
    </div>
</div>
</div>
<?php Asset::container('gallery')->add('gallery_script', 'js/gallery/index.js');?>
<?php Asset::container('gallery')->add('jiathis', 'http://v3.jiathis.com/code_mini/jiathis_r.js?uid=1350809600080348&type=left&amp;move=0&amp;btn=l3.gif');?>
<?php echo View::make('share.front_footer')->with('script', array('gallery'));?>
